<?php namespace app\Classes\BuilderTest;

class bmwBuilder extends carBuilder{
    private $bmwModel;

    public function __construct(){
        $this->bmwModel = new bmwCarModel();
    }

    public function setSpareParts($partsName , $xinghao){
        $this->bmwModel->spareParts[$partsName] = $xinghao;
    }

    public function getCarModel($name){
        $this->bmwModel->getCar($name);
    }
}